#include "ctip.h"

using namespace cooking;

CTip::CTip(QObject *parent) :
    CObject(parent)
{
//    m_id = KInvalidId;
    m_description = KNullString;
    m_recipe_id = KInvalidId;
    m_number = 0;
}

//int CTip::id() {
//    return m_id;
//}

//void CTip::setId(int id) {
//    if (m_id != id) {
//        m_id = id;
//        emit idChanged();
//    }
//}

int CTip::recipeId() {
    return m_recipe_id;
}

void CTip::setRecipeId(int id) {
    if (m_recipe_id != id) {
        m_recipe_id = id;
        emit recipeIdChanged();
    }
}

int CTip::number() {
    return m_number;
}

void CTip::setNumber(int number) {
    if (m_number != number) {
        m_number = number;
        emit numberChanged();
    }
}

QString CTip::description() {
    return m_description;
}

void CTip::setDescription(QString desc) {
    if (m_description != m_description) {
        m_description = desc;
        emit descriptionChanged();
    }
}
